mod request;
mod response;

pub mod prelude {
    pub use { 
        super::request::Request as NrReq,
        super::response::Response as NrRes,
        super::response::status_404,
        super::response::status_500,
    };
}

// Transfer-Encoding: chunked 代表流式请求
const TE: &'static str = "Transfer-Encoding";
// 请求体类型
// const CT: &'static str = "Content-Type";
// 请求体长度
const CL: &'static str = "Content-Length";
// 是否长连接 keep-alive
pub const CN: &'static str = "Connection";
// 请求头和请求体分隔符 SP
const SP: &'static [u8; 4] = &[ b'\r', b'\n', b'\r', b'\n' ];
// 换行符 CRLF
const CRLF: &'static [u8; 2] = &[ b'\r', b'\n' ];